package com.by.bean;

/**
 * @version 1.0
 * @Author 彭彦彬
 * @Date 2025/4/8 20:16
 * @注释
 */
public class BeanDefinition {
    private String scope; // 单例（singleton）或原型（prototype）
    private Class<?> beanClass;

    public BeanDefinition(Class<?> beanClass) {
        this.beanClass = beanClass;
        this.scope = "singleton"; // 默认单例
    }

    public String getScope() {
        return scope;
    }

    public void setScope(String scope) {
        this.scope = scope;
    }

    public Class<?> getBeanClass() {
        return beanClass;
    }
}
